package me.lwn.auth.infrastructure.repository;

import me.lwn.auth.common.crud.BaseRepository;
import me.lwn.auth.domain.LockedRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface LockedRecordRepository extends BaseRepository<LockedRecord, String> {

    Page<LockedRecord> findByReleaseStatusIsNotNullAndReleaseStatusIsAfter(LocalDateTime dateTime, Pageable pageable);

    List<LockedRecord> findByReleaseStatusIsNotNullAndReleaseStatusIsAfter(LocalDateTime dateTime);
}